﻿#ifndef FEEDBACK_H
#define FEEDBACK_H

#include "common/baseeditor.h"
#include "fb_additem.h"

namespace Ui {
class Feedback;
}

class Feedback : public BaseEditor
{
    Q_OBJECT

public:
    explicit Feedback(QWidget *parent = nullptr);
    ~Feedback();

    void generateMenu();
    void updateCategory();
    void updateView();
    void newItem();

protected:
    void keyPressEvent(QKeyEvent *event);

private slots:
    void on_listView_doubleClicked(const QModelIndex &index);
    void on_tableView_clicked(const QModelIndex &index);
    void on_btn_saveDetail_clicked();
  //  void on_btn_saveAddition_clicked();
    void on_tableView_doubleClicked(const QModelIndex &index);

private:
    Ui::Feedback *ui;

    int selectId;
    QString previousDetail;
   // QString previousAddition;
    QString selectCategory;
    QStringList categories;
    QStringListModel *listModel;
};

#endif // FEEDBACK_H
